import http from "./request"

// 新增
export const addApi = async parm => {
    return await http.post("/api/room", parm)
}

// 宿舍列表
export const getRoomListApi = async parm => {
    return await http.get("/api/room/list", parm)
}

// 编辑
export const editApi = async parm => {
    return await http.put("/api/room", parm)
}

// 删除
export const deleteApi = async parm => {
    return await http.delete("/api/room", parm)
}

// 初始化床位
export const initBedApi = async parm => {
    return await http.post("/api/storey/initBed", parm)
}

// 编辑床位
export const editBedApi = async parm => {
    return await http.put("/api/roomBed", parm)
}

// 删除床位
export const deleteBedApi = async parm => {
    return await http.delete("/api/roomBed", parm)
}